﻿<%@ Page Language="C#" MasterPageFile="~/Masterpage/User.master" AutoEventWireup="true"
    CodeFile="privatedish.aspx.cs" Inherits="User_privatedish" Title="SundayWish - 个人食谱详情" %>

<asp:Content ID="Content1" ContentPlaceHolderID="pagecontent" runat="Server">
    <div class="dishdetailleft">
        <div class="dishdetailblockhead">
            <div class="dishdetailimg">
                <div class="box">
                    <asp:Image ID="img" runat="server" />
                </div>
            </div>
            <div class="dishdetailcontent">
                <div class="dishname">
                    <asp:Label ID="lbName" runat="server" Text="Label"></asp:Label></div>
                <table style="margin-top: 10px" class="tabledetail">
                    <tr>
                        <td height="25px">
                            <span>分类：<asp:Label ID="lbKind" runat="server" Text="Label" CssClass></asp:Label></span>
                        </td>
                    </tr>
                    <tr>
                        <td height="25px">
                            <span>使用次数：<asp:Label ID="lbCount" runat="server" Text="Label"></asp:Label>次</span>
                        </td>
                    </tr>
                    <tr>
                        <td height="25px">
                            <span>原材料：<asp:Label ID="lbMaterial" runat="server" Text="Label"></asp:Label></span>
                        </td>
                    </tr>
                </table>
                <div style="margin-top: 20px">
                    <asp:Button ID="btnAdd" runat="server" Text="加入食谱计划" OnClick="btnAdd_Click" CssClass="buttona" />
                    <asp:Button ID="btnReturn" runat="server" Text="返回食谱列表" CssClass="buttona" OnClick="btnReturn_Click" />
                </div>
            </div>
        </div>
        <div class="dishdetailblock">
            <h3>
                简介</h3>
            <div class="dishdetailblocka">
                <asp:Label ID="lbintroduction" runat="server" Text="Label"></asp:Label></div>
        </div>
        <div class="dishdetailblock">
            <h3>
                做法</h3>
            <div class="dishdetailblocka">
                <asp:Label ID="lbstep" runat="server" Text="Label"></asp:Label></div>
        </div>
    </div>
    <div class="dishdetailright">
        <div class="dishdetailrighthead">
            <div style="float: left; line-height: 25px; height: 25px;">
                <asp:label ID="lbdate" runat="server">尚未选择食谱计划</asp:label></div>
            <div style="float: right; line-height: 25px; height: 25px;">
                <asp:label ID="lbweek" runat="server"></asp:label></div>
        </div>
        <div class="dishdetailrighttable">
            <asp:GridView ID="gvCurrentPlan" runat="server" PageSize="8" AllowPaging="true" AutoGenerateColumns="False"
                ShowHeader="False" BorderStyle="None" BorderWidth="0px" GridLines="None" Width="100%" OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                        <div class="rightplanlist"><%# Eval("DishName")%><div style="float:right">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/web/cancel.png" CommandName="delData" CommandArgument='<%#Eval("DishId") %>' OnClientClick='if(confirm("您确定删除吗?"))return true;else return false;'/></div></div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="float:right; margin-top:5px">
                <asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="~/User/plan/planlist.aspx" CssClass="otherplan">选择其他计划</asp:LinkButton></div>
        </div>
    </div>
</asp:Content>
